package com.orilx.lowtea.article
import com.orilx.lowtea.web.PageParams
import org.springframework.stereotype.Service

@Service
class ArticleService {

    /**
     * 获取文章列表
     */
    fun listArticle(
        userId: String?,
        pageParams: PageParams
    ): List<ArticleModel>{
        TODO()
    }

    /**
     * 发帖
     */
    fun createArticle(userId: String, payload: ArticleCreateRequest.Article): ArticleModel{
        TODO()
    }

    /**
     * 获取帖子内容
     */
    fun getArticle(userId: String?, slug: String): ArticleModel{
        TODO()
    }

    /**
     * 查询帖子数量
     */
    fun countArticle(userId: String?): Long {
        TODO()
    }

    /**
     * 删除帖子
     */
    fun deleteArticle(userId: String, slug: String) {
        TODO()
    }


}